<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>缺货列表</title>
<body class="withvernav">
<div class="bodywrapper">
    {{include file='/public/leftmenu.tpl'}}
    <div class="centercontent">
        <div class="pageheader notab">
            <h1 class="pagetitle">缺货列表</h1>
            <span class="pagedesc"></span>
            <div class="menulist">
              
            </div>
        </div>
        <!--pageheader-->

        <div id="contentwrapper" class="contentwrapper">
            <div id="basicform" class="subcontent">

                <!--搜索栏-->
                <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>

                <form class="stdform stdform2" method="get" id="search" action="/report/Oustock">
                    <input type='hidden' name='if_csv' id='if_csv'>

                    <div class="tableoptions">


                      <!--  <select name="ty" id="searchtype" class="selection" style="width:100px;">
                            <option value="1" {{if $ty==1}} selected{{/if}}>创建时间</option>
                            <option value="2" {{if $ty==2}} selected{{/if}}>完成时间</option>
                        </select>

                        <input type="text" name="starttime" value="{{$starttime}} "
                               onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker"/> - <input
                                type="text" name="endtime" value="{{$endtime}} "
                                onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker"/>-->
                        关键词: <input type="text" name="other" id="other" class="width300" value="{{$other}}"
                                    placeholder="SKU"/>
                        &nbsp;采购人员
                         <select name="buyer" id="buyer" class="selection select2_group" style="width:100px;" >
            <option value="0">请选择</option>
            {{foreach from=$userlist item=res key=key}}
            <option value="{{$res}}" {{if $buyer eq $res}} selected{{/if}}>{{$res}}</option>
            {{/foreach}}
        </select> &nbsp;
                        供货商
                        <select name="supplier" id="supplier" class="selection" >
                            <option value="">请选择</option>
                            {{foreach from=$factory item=res key=key}}
                            <option value="{{$res.id}}" {{if $res.id == $supplier}} selected{{/if}}>{{$res.name}}</option>
                            {{/foreach}}

                        </select>

                        &nbsp;
                        <button class="btn btn_orange btn_search radius50">Search</button>
                    </div>


                </form>
                <!--搜索栏结束-->
                <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
                    <thead>
                    <tr class="lbbt">
                        <td width="5%" bgcolor="#FEFFF1"><a onClick="allSelect('ppid[]')">全选</a></td>
                        <td width="8%" bgcolor="#FEFFF1">新品编号</td>
                        <td width="10%" bgcolor="#FEFFF1">图片</td>
                        <td width="20%" bgcolor="#FEFFF1">商品信息</td>
                        <td width="8%" bgcolor="#FEFFF1">缺货数</td>
                     <td width="18%" bgcolor="#FEFFF1">库存信息</td>
                        <td width="15%" bgcolor="#FEFFF1">查看</td>

                    </tr>
                    </thead>

                    {{foreach from=$goodslist item=li key=key}}
                    <tbody id="bdetail{{$detail.p_parent_id}}">
                    <tr>
                        <td><input name="ppid[]" type="checkbox" class="none" id="ppid[]" value="{{$li.goods_id}}" onClick="showallchangsmod()"/></td>
                        <td valign="middle" style="position:relative;">
                           <a href="/product/productlist?other={{$li.goods_sn}}" target="_blank"> {{$li.goods_sn}}</a>
                      </td>
                        <td valign="middle">
                       
                       		<img src="{{$li.thumb_url}}" width="50">
                     
                        </td>
                        <td>
                            <div class="lbcp">
                                {{$li.goods_name}}<br>
                            </div>
                        </td>

                        <td valign="middle">{{$li.goods_number}}</td>
                 
                      <td class="cz">库存：{{$li.stock}}&nbsp;&nbsp;&nbsp;
                        				库位：{{$li.positions}}&nbsp;&nbsp;&nbsp;在途：{{$li.in_transit}}<br>
                        	</td>
                        <td class="cz">
                            {{if $userclassid eq 12 || $userclassid eq 13}}
                            {{else}}
                            <a href="/orderlist/orderlist?filtertype=productid&kw={{$li.goods_sn}}" target="_blank">查看订单</a>
                            {{/if}}
                        </td>
                    </tr>

                    {{/foreach}}
                </table>
                <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
            </div>
        </div>






</body>
</html>